package dbTest;

import com.guan.jdbc.JDBCBaseDao;
import org.junit.Test;

/**
 * 事务测试类
 * @author Administrator
 *
 */
@SuppressWarnings("all")
public class Transaction {

	JDBCBaseDao jdbcTemplate = new JDBCBaseDao();
	@Test
	 public void Transaction() {
		/* DBUtil.openTransaction();
		 String sql = "insert into adminUser (userId,age,username)  values(?,?,?)";
		 int i = jdbcTemplate.excuteUpdate(sql, 3,30,"王五");
		 i = jdbcTemplate.excuteUpdate(sql, 4,40,"赵六");
		 DBUtil.commitTransaction();*/
	 }
}
